<div class="topics">
  <ul class="list-group">
    <% @posts.each do |post| %>
      <li class="list-group-item">
        <a href="<%= post_path(post) %>">
          <div class="topic-title">
            <%= post.title %>
          </div>
          <div class="topic-footer">
            <span class="time pull-left"><%= timeago_tag post.created_at, lang: I18n.locale, nojs: true %></span>
          </div>
        </a>
      </li>
    <% end %>
  </ul>
</div>